package com.health.platform.common.sys.dict.controller;

import com.health.platform.common.restful.AppResponse;
import com.health.platform.common.sys.dict.entity.DictEntity;
import com.health.platform.common.sys.dict.service.DictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>字典Controller</p>
 * <p>创建日期：2021-02-27</p>
 *
 * @author zhou-qf
 */
@RequestMapping("dict")
@RestController
public class DictController {

    @Autowired
    private DictService dictService;

    /**
     * 获取字典信息
     * @param dictEntity 参数
     * @return 结果
     */
    @GetMapping
    public AppResponse getDict(@RequestBody DictEntity dictEntity){
        return dictService.getDict(dictEntity);
    }
}
